package com.xudu.entity;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.util.Objects;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 *
 * </p>
 *
 * @author xudu
 * @since 2024-04-18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "user", autoResultMap = true)
public class User implements Serializable {

    //private static final long serialVersionUID = 1L;
    private long id;

    /**
     * 用户姓名
     */
    @TableField("userName")
    private String username;

    /**
     * 用户密码
     */
    //@TableField(typeHandler = EncryptHandler.class)
    private String password;

    /**
     * 用户头像存储路径
     */
    @TableField("avatarPath")
    private String avatarpath;

    /**
     * 用户类别
     */
    private int role;


}
